/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_driver.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.tb_driver.entity.TbDriver;

/**
 * 司机管理DAO接口
 * @author ZhangYangZe
 * @version 2017-05-13
 */
@MyBatisDao
public interface TbDriverDao extends CrudDao<TbDriver> {
	public void updateNew(TbDriver tbDriver);
	/**
	 * 根据司机电话获取司机信息
	 * @param tell
	 * @return
	 */
	public TbDriver findByUserName(@Param("tell")String tell);
	
	/**
	 * 根据司机的状态获取司机的列表 
	 * @param TbDriver
	 * @return TbDriver
	 */
	public List<TbDriver> driverTypeOne(TbDriver tbDriver);
}